home *** CD-ROM | disk | FTP | other *** search
/ Champak 120 / Vol 120.iso / games / how_to_m.swf / scripts / DefineSprite_471 / frame_3 / DoAction.as
Encoding:
Text File  |  2010-11-09  |  372 b   |  24 lines

  1. stop();
  2. var depth = 10;
  3. var i = 0;
  4. while(i < 7)
  5. {
  6.    eval("dec" + i).onPress = function()
  7.    {
  8.       this.swapDepths(depth);
  9.       this.startDrag();
  10.    };
  11.    eval("dec" + i).onRelease = function()
  12.    {
  13.       if(!decHit.hitTest(this))
  14.       {
  15.          stopDrag();
  16.       }
  17.    };
  18.    i++;
  19. }
  20. plyAgain.onPress = function()
  21. {
  22.    _parent.gotoAndStop(2);
  23. };
  24.